package com.songlanyun.modules.systeminfo.controller.api;

import com.songlanyun.common.annotation.RepeatSubmit;
import com.songlanyun.common.utils.R;
import com.songlanyun.common.validator.ValidatorUtils;
import com.songlanyun.modules.systeminfo.entity.SystemInfo;
import com.songlanyun.modules.systeminfo.service.SystemInfoService;
import com.songlanyun.modules.user.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;


/**
 * 平台信息
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-12-02 13:07:36
 */
@RestController
@RequestMapping("api/system/info")
public class SystemInfoApiController extends AbstractController {
    @Autowired
    private SystemInfoService systemInfoService;


    /**
     * 信息
     */
    @GetMapping("/info")
//    @RequiresPermissions("systeminfo:systemInfo:info")
    public R info() {
        SystemInfo info =  systemInfoService.info();

        return R.ok().put("data", info);


    }


}
